# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=dvdauthor
pkgver=0.7.2
pkgrel=10
pkgdesc="DVD authoring tools"
url="https://dvdauthor.sourceforge.net/"
arch="all"
license="GPL-2.0-or-later"
makedepends="
	autoconf
	automake
	freetype-dev
	fribidi-dev
	libdvdread-dev
	libpng-dev
	libtool
	libxml2-dev
	gettext-dev
	"
subpackages="$pkgname-doc"
source="https://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz
	libxml-pc.patch
	pkgconfig-1.patch
	"
builddir="$srcdir/$pkgname"

prepare() {
	default_prepare
	autoreconf -fvi
}

build() {
	./configure \
		--prefix=/usr \
		--sysconfdir=/etc \
		--disable-rpath \
		--disable-static
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
202b8bba38939d122dc864921a57e89906ca99ddabf44e3b07419cc42cc052567cd892b41f1171c9c195c9a770758e9319a942ea64d14ee8fa847588c7761125  dvdauthor-0.7.2.tar.gz
47e6141afa6321c12b73dbedcef6b1ccd6274528af3fc9bddf85fc7f43b9673b8db93f1341c3c9b205d19468b93f38847189fc04fa433848936558de3b0306c8  libxml-pc.patch
3dd640f1569d4d99c1ef67f8515c06b04bf9b23e6aa98ca7642735a8e01d22fed507b328c7c6a9b7797e1e76e827fd4da59fec214eba57b9595dfba2e619dc8c  pkgconfig-1.patch
"
